package com.bw.service.impl;

import com.bw.gmallpublisher.bean.ShopAllBean;

import com.bw.gmallpublisher.bean.ShopByHourBean;
import com.bw.gmallpublisher.mapper.ShopMapper;
import com.bw.gmallpublisher.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    ShopMapper shopMapper;



    @Override
    public ShopAllBean getShopStatsAll(Integer date, Integer shop_id, Integer device_type) {
        return shopMapper.ShopMapAll(date,shop_id,device_type);
    }

    @Override
    public List<ShopByHourBean> getShopStatsByHr(Integer date, Integer shop_id, Integer device_type) {
        return shopMapper.ShopMapByHr(date,shop_id,device_type);
    }
}
